home *** CD-ROM | disk | FTP | other *** search
- CP - Copy files (Rainbow or IBM PC); Version 2.2
-
- cp [-diqv!] file,file,... target
-
- Filespecs may contain a drive and/or a directory specification
- and wildcard characters.
-
- If only one file is being copied, the target may be a file name
- or a drive and/or directory name. In the latter case, the
- source file name is used in the target drive and/or directory.
- If multiple filespecs are given or wildcard characters are
- used, the target must be a drive and/or directory name only.
- The file name of each file copied is used to make the target
- file name.
-
- If a source filespec contains a drive and/or directory, these
- are passed along to the subsequent source filespecs until
- reassigned; thus
-
- cp \src\*.c,*.obj,\exe\*.* b:
-
- is the same as
-
- cp \src\*.c,\src\*.obj,\exe\*.* b:
-
- and
-
- cp b:bob,carol,\tmp\ted,alice \bed
-
- is shorthand for
-
- cp b:bob,b:carol,b:\tmp\ted,b:\tmp\alice \bed
-
- If a target file exists, CP normally asks for verification
- before overwriting.
-
- If there is not enough room on the target disk for the copy,
- the program pauses while the user changes disks; the copy then
- proceeds.
-
- Options:
-
- -d (delete after copy)
-
- The source file is deleted without confirmation if the copy was
- successful.
-
- -i (input)
-
- The list of files to copy is taken from the standard input rather
- than the command line. Thus with -i the format of cp is
-
- cp -i [-dqv!] target
-
- This is useful when using cp as a filter. e.g.
-
- ls -fm|cp -i a:
-
- copies files in order from smallest to largest. This insures that
- the most files will be copied to a: before it fills.
-
- -q (quiet)
-
- Supresses informational copy messages.
-
- -v (verify)
-
- Causes user confirmation to be requested before copying. At
- each file prompt the user answers either Y (do the copy), ! (do
- the copy and don't ask for confirmation on future files), or N
- (don't copy this file). Any other answer is the same as N.
-
- -! (hammer!)
-
- Supresses the verification which is normally requested (even
- without -v) before overwriting an existing file.
-
- Options may be combined as in
-
- cp -q! ...
-
- The CP! command is a shorthand for cp -!. Usage is
-
- cp! [-diq] file,file,... target
-
- Copyright (c) 1985,1986, by Bryan Higgins. This program may be
- distributed freely as long as it is not sold for profit.
-
- The author may be reached at
-
- 1802 Channing Way
- Berkeley, CA 94703
-
- One of the Kramden Utilities.
-